package com.vmj.instructions.constants;

import com.vmj.common.BytesReader;
import com.vmj.instructions.base.NoOperandsInstruction;
import com.vmj.rtda.Frame;

/**
 * Created by yangshoujun on 2017/8/20 上午12:06.
 */
public class SiPush extends NoOperandsInstruction {

    private short value;

    @Override
    public void fetchOperands(BytesReader reader) {
        this.value = reader.readShort();
    }

    @Override
    public void execute(Frame frame) {
        frame.getOperandStack().pushInt(value);
    }
}
